
#OBJS=QRcode.c camera.c convert.c  zbar.c
#CC=arm-none-linux-gnueabi-gcc
#TARGET=QRcode.o

#$(TARGET):$(OBJS)
#	$(CC) $^ -o $@ -c -I../include  -I../include/jpeg_lib/ -I../include/zbar_lib/ 
#	mv QRcode ../obj/
all:QRcode.o camera.o convert.o zbar.o
QRcode.o:QRcode.c
	arm-none-linux-gnueabi-gcc -o QRcode.o -c QRcode.c  -I../include -I../include/jpeg_lib/ -I../include/zbar_lib/
	mv QRcode.o ../obj/
camera.o:camera.c
	arm-none-linux-gnueabi-gcc -o camera.o -c camera.c  -I../include -I../include/jpeg_lib/ -I../include/zbar_lib/
	mv camera.o ../obj/
convert.o:convert.c
	arm-none-linux-gnueabi-gcc -o convert.o -c convert.c  -I../include -I../include/jpeg_lib/ -I../include/zbar_lib/
	mv convert.o ../obj/
zbar.o:zbar.c
	arm-none-linux-gnueabi-gcc -o zbar.o -c zbar.c  -I../include -I../include/jpeg_lib/ -I../include/zbar_lib/
	mv zbar.o ../obj/
clean:
	rm -rf $(TARGET)
	rm *~
